package com.toobigtofail.posevo
{
	import net.flashpunk.Engine;
	import net.flashpunk.FP;
	import net.flashpunk.World;
	
	import splash.Splash;
	
	public class PowerOnSystem extends Engine
	{
		public function PowerOnSystem()
		{
			super(800,600,60,false);
		}
		
		override public function init():void
		{
			FP.console.enable();
			
			FP.world = new PlanetOfSubarus; //remove for splash
			
			var splash:Splash = new Splash;
			FP.world.add(splash);
			(splash as Splash).start(startGame);
		}
		
		private function startGame():void {
			FP.world.removeAll();
			FP.world = new PlanetOfSubarus;
		}
	}
}